package crazy.interfacee;

public class SubClass extends BaseClass
{
	public String book = "J2EE";
	
	@Override
	public void test()
	{
		System.out.println("zi--test()");
	}
	public void sub()
	{
		System.out.println("zi--sub()");
	}
	
	public static void main(String[] args)
	{
		BaseClass bc = new BaseClass();
		System.out.println(bc.book);
		
		bc.base();
		bc.test();
		
		SubClass sc = new SubClass();
		System.out.println(sc.book);
		
		sc.base();
		sc.test();
		
		BaseClass ploymophicBc = new SubClass();
		System.out.println("ploymophicBc.book-->"+ploymophicBc.book);
		ploymophicBc.base();
		ploymophicBc.test();
		//ploymophicBc.sub();
	}
	
	
	
}
